#include <stdio.h>

int main() {
   char c = 0;
   scanf("%c",&c);
   printf("%d\n",c);

    return 0;
}